package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.pojo.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {

    void savewithFlavor(DishDto dishDto);

    DishDto getByIdWithFlavor(Long id);

    void updateWithFlavor(DishDto dishDto);

    Page<DishDto> pageDishDto(Integer page, Integer pageSize, String name);

    void deleteWithFlavor(List<Long> ids);

    List<DishDto> listDishDto(Long categoryId, String name);
    //移动端单击展示菜品详细数据
    List<DishDto> getDishBysetmealId(Long setmealId);
}
